package com.school.service;

import com.school.dao.NoticeDAO;
import com.school.entity.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NoticeService {
    @Autowired
    private NoticeDAO dao;

    @Override
    public String toString() {
        return "AboutService{" +
                "dao=" + dao +
                '}';
    }

    public Notice[] selectAll() {
        Notice[] notices = dao.selectAll();
        return notices;
    }



}
